package com.sunlee.common.core.utils;

import java.util.Objects;

/**
 * @author sunjulei
 * @date 2022/6/29
 */
public class TimeUtils {
    private TimeUtils() {
    }

    public static final long NUM_12 = 24L;

    public static final long HOUR_1 = 60 * 60L;

    public static final long TIMESTAMP_1000 = 1000L;

    public static void sleep(Long timeLimit) {
        try {
            Thread.sleep(Objects.isNull(timeLimit) || timeLimit < 0 ? TIMESTAMP_1000 : timeLimit);
        } catch (InterruptedException ignored) {
        }
    }
}
